﻿package plugin.bagN
{
    import com.core.*;
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import flash.geom.*;
    import plugin.bagN.control.*;
    import view.*;

    public class Bag extends FlashUIBase
    {
        private var _ui:BagCtrl;

        public function Bag()
        {
            return;
        }// end function

        override protected function preLoaderInit() : void
        {
            super.preLoaderInit();
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            appendLoader(Config.getUrl("assets/images/mornui/bagN.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function initGUI() : void
        {
            this._ui = new BagCtrl(this);
            mGUI = this._ui;
            TitleBg = this._ui.titleBg;
            return;
        }// end function

        override protected function openRefresh() : void
        {
            super.openRefresh();
            if (this.data == "sell")
            {
                ModelProxy.change("bag", "chushou", null);
            }
            return;
        }// end function

        override public function open(param1:Point = null, param2:Object = null, param3:Point = null) : void
        {
            super.open(param1, param2, param3);
            return;
        }// end function

        override public function close() : void
        {
            super.close();
            return;
        }// end function

        override protected function closeComplete() : void
        {
            (mGUI as BagCtrl).closeComplete();
            super.closeComplete();
            return;
        }// end function

    }
}
